From eb15aa1822623116d37b654465b55c56ffe6663d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 28 Jun 1994 19:00:30 +0000 Subject: [PATCH] (a_write): Loop while *ANNOT is listp, not consp. Previous code omitted all data from output files when *ANNOT was nil. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 0a04f713d7b..1446eaf4033 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3296,7 +3296,7 @@ a_write (desc, addr, len, pos, annot) int nextpos; int lastpos = pos + len; - while (CONSP (*annot)) + while (NILP (*annot) || CONSP (*annot)) { tem = Fcar_safe (Fcar (*annot)); if (INTEGERP (tem) && XINT (tem) >= pos && XFASTINT (tem) <= lastpos) -- 2.30.2